<?php
  if ($_COOKIE[AnonymousID])
            {
                $tempCookie = $_COOKIE["AnonymousID"];
                setcookie("AnonymousID", $tempCookie."|BOOKID:".$_GET["bookid"], time()+3600);
            }
            else
            {
                $random_id = (rand()%9999999);
                $tempCookie = "USERID:" .$random_id."|BOOKID:" . $_GET["bookid"];
                setcookie("AnonymousID", $tempCookie."|BOOKID:".$_GET["bookid"], time()+3600);
            }
?>
